package com.wx.chapter10.final_;

/**
 * ClassName:FinalDetail01
 * Package :com.wx.chapter10.final_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/6/7 - 16:29
 */
public class FinalDetail01 {
    public static void main(String[] args) {
        AA aa = new AA();
        System.out.println(aa.TAX_RATE2);
        System.out.println(aa.TAX_RATE3);
        EE ee = new EE();
        ee.cal();
        DD dd = new DD();
        dd.cal();
    }
}

class AA {
    public final double TAX_RATE = 0.08;
    public final double TAX_RATE2;
    public final static double TAX_RATE3;

    public AA() {
        TAX_RATE2 = 1.1;
    }

    static {
        TAX_RATE3 = 8.8;
    }
}

class DD {
    public final void cal() {
        System.out.println("cal()方法");
    }
}

class EE extends DD {
}